package com.shopping.mall.core.module.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;

@Data
public class OrderPage {

    @ApiModelProperty(value="完成时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp finishAt;

    @ApiModelProperty(value="发货时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp deliverAt;

    @ApiModelProperty(value="支付时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp payAt;

    @ApiModelProperty(value="订单状态（1为待支付，2为已支付待发货，3为已发货，4为已收货）")
    private Integer state;

    @ApiModelProperty(value="订单编号")
    private String orderNumber;

    @ApiModelProperty(value="修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp updateAt;

    @ApiModelProperty(value="创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp createAt;

    @ApiModelProperty(value="总价格")
    private Double totalPrice;

    @ApiModelProperty(value="运费")
    private Double freightPrice;

    @ApiModelProperty(value="商品价格")
    private Double goodsPrice;

    @ApiModelProperty(value="国家")
    private String country;

    @ApiModelProperty(value="省")
    private String province;

    @ApiModelProperty(value="市")
    private String city;

    @ApiModelProperty(value="区")
    private String district;

    @ApiModelProperty(value = "位置名")
    private String title;

    @ApiModelProperty(value = "详细地址")
    private String address;

    @ApiModelProperty(value="姓名")
    private String recipients;

    @ApiModelProperty(value="手机号")
    private String phone;

    @ApiModelProperty(value="邮箱")
    private String email;

    @ApiModelProperty(value="用户ID")
    private String userId;

    @ApiModelProperty(value="主键")
    private String id;

    private Integer size;

    private Integer current;

}
